package com.example.springboot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.springboot.controller.dto.FollowDTO;
import com.example.springboot.entity.Follows;
import com.example.springboot.mapper.FollowsMapper;
import com.example.springboot.service.IFollowsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户关注表 服务实现类
 * </p>
 *
 * @author
 *
 */
@Service
public class FollowsServiceImpl extends ServiceImpl<FollowsMapper, Follows> implements IFollowsService {

    @Override
    public Page<FollowDTO> pageWithAuthor(Page<FollowDTO> pageInfo, QueryWrapper<Follows> queryWrapper) {
        return baseMapper.selectArticlePageWithAuthor(pageInfo, queryWrapper);
    }
}
